package day1104.demo03;

import java.util.function.BiPredicate;

/**
 * @author wql
 * @version 1.0
 * @date 2022/11/4 15:20
 */

public class Test {
    public static void main(String[] args) {
        //对象方法 (第一个参数是调用方法，第二个参数是方法里的参数)
        BiPredicate<String,String> biPredicate =(a,b)->a.equals(b);
        //简写
        BiPredicate<String,String> biPredicate1 =String::equals;

        System.out.println(biPredicate.test("haha", "hehe"));
    }
}
